(function($){
	/*"use strict";*/
	$.entwine('ss', function($) {
		$('#action_doApprovePayment').entwine({
			onclick: function(e) {
				if (confirm('Are you sure you want to approve this payment?')) {
					this._super(e);
				} else {
					e.preventDefault();
					return false;
				}
			}
		});

		$('#action_doDeclinePayment').entwine({
			onclick: function(e) {
				if (confirm('Message is required when you decline this payment. Are you sure you want to decline this payment?')) {
					this._super(e);
				} else {
					e.preventDefault();
					return false;
				}
			}
		});
	});

}(jQuery));